﻿@model IEnumerable<Icoders.MarketTracker.Core.MasterData.PointOfPurchase>
@{
    ViewBag.Title = "Search - Point Of Purchase";
}
<h2>
    Point Of Purchase</h2>
 <div id="app-msg">@ViewBag.msg</div>
  @using (Html.BeginForm())
   {
    @Html.ValidationSummary(true)
    <table>
    <tr><td>Search</td></tr>
    <tr><td> <input type="text" name="search" /></td></tr>
    <tr><td> <input type="submit" value="Search" /></td></tr>
    </table>
   
   }
   @if (Model != null)
   {
   
<table id="data-grid">
    <tr>
        <th>
            Point of Purchase
        </th>

    </tr>
  
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.ActionLink(item.Name, "Order", new { popId = item.Id})
            </td>
        </tr>
    }
</table>
   }
    @Html.ActionLink("Back to Home", "Index", new { controller = "Mhome" })